#include <SoftwareSerial.h>

/* Sets pin (10, 11) and (12, 13) as rx and tx for wheel control and linear actuator
   You can utilize any digital pins except (0,1) which are reserve for the USB.
   I believe the ports are always in pairs.*/
SoftwareSerial act = SoftwareSerial(10, 11);
SoftwareSerial wheels = SoftwareSerial(12, 13);

void setup(){
  /* Instance name: sets transfer baudrate,
     the higher the number the faster the transfor speed.*/
  Serial.begin(9600);
  wheels.begin(9600);
  //act.begin(9600);
}

void loop(){
  if (Serial.available() > 0){
  int val = Serial.read();
  
    if (val > 0 && val < 128 ){
      wheels.write(byte(val));
      Serial.println("val"); // For testing only.
    }
    else if (val > 128 && val < 256){
      wheels.write(byte(val));
      Serial.println("val"); // For testing only.
    }
    else (Serial.println("NOTHING")); // For testing only
  }
}
      
  
